package com.springboot.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author sunyaodong
 * @description
 * @email 15091776297@163.com
 * @created 2018/8/27 10:09
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@RestController
public class ServiceHelloApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHelloApplication.class,args);
    }
    @RequestMapping(value = "hello")
    public String hello(@RequestParam String name){
        return "Hello, " + name + " " + new Date();

    }
}
